/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

/**
 *
 * @author Maciek
 */
public class PersonalData {
    public String firstName;
    public String lastName;
    public String Pesel;
    
    public String randomNumber;

    public PersonalData(String firstName, String lastName, String Pesel, String randomNumber) {
        this.firstName = firstName;
        this.lastName = lastName;
        this.Pesel = Pesel;
        this.randomNumber = randomNumber;
    }

    public PersonalData() {
    }
    
    public boolean personalDataMatch(PersonalData pd){
        return this.firstName.equals(pd.firstName) && this.lastName.equals(pd.lastName) && this.Pesel.equals(pd.Pesel);
    }
}